package cn.stylefeng.guns.sys.modular.system.db2.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.system.db2.entity.DbiShop;
import cn.stylefeng.guns.sys.modular.system.db2.model.params.DbiShopParam;
import cn.stylefeng.guns.sys.modular.system.db2.model.result.DbiShopResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiangge
 * @since 2020-10-27
 */
public interface DbiShopService extends IService<DbiShop> {

    /**
     * 新增
     *
     * @author jiangge
     * @Date 2020-10-27
     */
    void add(DbiShopParam param);

    /**
     * 删除
     *
     * @author jiangge
     * @Date 2020-10-27
     */
    void delete(DbiShopParam param);

    /**
     * 更新
     *
     * @author jiangge
     * @Date 2020-10-27
     */
    void update(DbiShopParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author jiangge
     * @Date 2020-10-27
     */
    DbiShopResult findBySpec(DbiShopParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author jiangge
     * @Date 2020-10-27
     */
    List<DbiShopResult> findListBySpec(DbiShopParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author jiangge
     * @Date 2020-10-27
     */
     LayuiPageInfo findPageBySpec(DbiShopParam param);

    ResponseData shopList();
}
